#include "MySort.h"
#include <iostream>
using namespace std;

void main()
{
	int data[] = {22, 37, 19, 15, 12};

	CMySort s(5);
	s.initData(data);
	cout << "Source Data : ";
	s.printData();

	s.selectionSort();
	
	cout << "selection Sort : ";
	s.printData();

	s.initData(data);
	cout << "Source Data : ";
	s.printData();
	s.bubbleSort();
	cout << "bubble sort : ";
	s.printData();

	s.initData(data);
	cout << "Source Data : ";
	s.printData();
	s.shellSort();
	cout << "shell sort : ";
	s.printData();

	s.initData(data);
	cout << "Source Data : ";
	s.printData();
	s.mergeSort(0,4);
	cout << "Merge sort : ";
	s.printData();

	s.initData(data);
	cout << "Source Data : ";
	s.printData();
	s.quickSort(0,4);
	cout << "Quick sort : ";
	s.printData();

}